package lab01;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        System.out.println("请输入成绩");

        int x=new Scanner(System.in).nextInt();
        int y=new Scanner(System.in).nextInt();

        if(x==1){
            System.out.println("不及格");
        }
        else if(x==2){
            System.out.println("及格");
        }
        else if(x==3){
            System.out.println("中等");
        }
        else if(x==4){
            System.out.println("良好");
        }
        else if(x==5){
            System.out.println("优秀");
        }

        switch(y){
            case(1):
                System.out.println("不及格");
            case(2):
                System.out.println("及格");
            case(3):
                System.out.println("中等");
            case(4):
                System.out.println("良好");
            case(5):
                System.out.println("优秀");
        }

    }
    }

